  
/* 请求的table */
 function addRow1(id){
  var _tab=document.getElementById(id);
  var _row=_tab.insertRow();
  var _col1=_row.insertCell();
  _col1.innerText="";
  _col1.align="center";
  var _col2=_row.insertCell();
  _col2.innerHTML= "<input type='text' class='form-control' name='code' id='requestCode' onblur='checkRequestCode();'>";
  _col2.align="center";
  var _col3=_row.insertCell();
  _col3.innerHTML="<input type='text' class='form-control' name='description' id='requestDescription'>";
  _col3.align="center";
  var _col4=_row.insertCell();
  _col4.innerHTML="<select class='form-control' name='location' id='requestLocation'>" +
         	  "<option>query</option>" +
        	  "<option>path</option>" +
         	  "<option>body</option>" +
         	  "<option>formData</option>" +
         	  "<option>header</option>" +
         	  "<option>cookie</option>" +
     		"</select>";
  _col4.align="center";
  var _col5=_row.insertCell();
  _col5.innerHTML="<select class='form-control' name='type' id='requestType'>" + 
         	  "<option>String</option>" + 
        	  "<option>int</option>" +
        	  "<option>short</option>" +
        	  "<option>byte</option>" +
         	  "<option>boolean</option>" +
         	  "<option>long</option>" + 
         	  "<option>double</option>" +
         	  "<option>float</option>" +
         	  "<option>decimal</option>" +
         	  "<option>file</option>" +
     		"</select>";
  _col5.align="center";
var _col6=_row.insertCell();
  _col6.innerHTML="<select class='form-control' name='isMust' id='requestIsMust'>" + 
  			  "<option>false</option>" +
         	  "<option>true</option>" + 
     		"</select>";
  _col6.align="center";
/* var _col7=_row.insertCell();
  _col7.innerHTML="<input type='text' class='form-control' name='conditionContent' id='requestCondition'>";
  _col7.align="center";*/
 var _col8=_row.insertCell();
  _col8.innerHTML="<button type='button' onClick='saveRequest();' id='save_btn' class='btn btn-success btn-sm' style='float: left;'>保存</button>" +
  		"<button type='button' class='btn btn-danger btn-sm' onClick='deleteRow1();' style='float: right;'>删除</button>";
  _col8.align="center";
 }
 /* 响应的table */
 function addRow2(id){
  var _tab=document.getElementById(id);
  var _row=_tab.insertRow();
  var index = _tab.rows.length;
  _row.setAttribute("id", index-2);
  var _col1=_row.insertCell();
  _col1.innerHTML="<input type='text' class='form-control' id='add_code' name='code'>";
  _col1.align="center";
  var _col2=_row.insertCell();
  _col2.innerHTML="<input type='text' class='form-control' id='add_description' name='description'>";
  _col2align="center";
  var _col3=_row.insertCell();
  _col3.innerHTML="<select class='form-control' name='type' id='add_select'>" + 
				"<option selected='selected'>String</option>"+
				"<option>array</option>"+
				"<option>object</option>"+
				"<option>boolean</option>"+
				"<option>int</option>"+
				"<option>long</option>"+
				"<option>float</option>"+
				"<option>double</option>"+
				"<option>decimal</option>"+
				"<option>ref</option>"+
     		"</select>";
}
 /*删除request的table*/
 function deleteRow1(){
	 var _tab=document.getElementById("requestTab");
	 var index = _tab.rows.length;
	 var _row=_tab.deleteRow(index-1);
	 }
 /*删除response的table*/
 function deleteRow2(){
	 var _tab=document.getElementById("responseTab");
	 var index = _tab.rows.length;
	 var _row=_tab.deleteRow(index-1);
 }
 